package com.yumeng.common.buss.area;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wxd
 * @date 2022/10/25 14:42
 */
@Getter
@AllArgsConstructor
public enum AreaLevel {

    UN_KNOW(-1, "未知", -1),
    TOP(0, "顶级", 1),
    PROVINCE(1, "省级", 2),
    CITY(2, "市级", 4),
    DISTRICT(3, "区级", 6),
    SUBDISTRICT(4, "街道级", 9),
    VILLAGE(5, "村级", 12);

    private final Integer code;
    @JsonValue
    private final String desc;

    private final Integer len;

}
